package com.proton.carepatchtemp.constant;

import com.proton.carepatchtemp.application.VCare;

/**
 * Created by MoonlightSW on 2016/12/20.
 */

public class Config {
    public static final int TEMP_UNIT_C = 1;
    public static final int TEMP_UNIT_F = 2;
    public static final int TEMP_UNIT_DEFAULT = getTempUnit();
    public static final long WARNING_DIV_DEFAULT = 30 * 60 * 1000;
    public static final boolean LOW_POWER_WARNING_DEFAULT = true;
    public static final boolean HIGH_TEMP_WARNING_DEFAULT = true;
    public static final boolean LOW_TEMP_WARNING_DEFAULT = true;
    public static final boolean DEVICE_DISCONNECT_WARNING_DEFAULT = true;
    public static final boolean DEVICE_SHARE_NOTIFICATION_DEFAULT = true;
    public static final boolean REPORT_CREATED_NOTIFICATION_DEFAULT = true;
    //图表透明度
    public static final int CHART_ALPHA = 120;

    public static int getTempUnit() {
        if (VCare.isInternal) {
            return TEMP_UNIT_F;
        } else {
            return TEMP_UNIT_C;
        }
    }
}
